function check1() {
    var w1 = document.getElementById("w1").value;
    var p1 = 2.2;
    var m1 = w1 * p1;
    m1 = m1.toFixed(2);
    document.getElementById("money1").innerHTML = m1;
}

function check2() {
    var w2 = document.getElementById("w2").value;
    var p2 = 3.3;
    var m2 = w2 * p2;
    m2 = m2.toFixed(2);
    document.getElementById("money2").innerHTML = m2;
}

function check3() {
    var w3 = document.getElementById("w3").value;
    var p3 = 4.4;
    var m3 = w3 * p3;
    m3 = m3.toFixed(2);
    document.getElementById("money3").innerHTML = m3;
}

function check4() {
    var w4 = document.getElementById("w4").value;
    var p4 = 5.5;
    var m4 = w4 * p4;
    m4 = m4.toFixed(2);
    document.getElementById("money4").innerHTML = m4;
}

function check5() {
    var w5 = document.getElementById("w5").value;
    var p5 = 6.6;
    var m5 = w5 * p5;
    m5 = m5.toFixed(2);
    document.getElementById("money5").innerHTML = m5;
}

function check6() {
    var w6 = document.getElementById("w6").value;
    var p6 = 7.7;
    var m6 = w6 * p6;
    m6 = m6.toFixed(2);
    document.getElementById("money6").innerText = m6;
}

function payMoney() {
    var w1 = document.getElementById("w1").value;
    var p1 = 2.2;
    var m1 = w1 * p1;
    m1 = m1.toFixed(2);
    document.getElementById("money1").innerHTML = m1;

    var w2 = document.getElementById("w2").value;
    var p2 = 3.3;
    var m2 = w2 * p2;
    m2 = m2.toFixed(2);
    document.getElementById("money2").innerHTML = m2;

    var w3 = document.getElementById("w3").value;
    var p3 = 4.4;
    var m3 = w3 * p3;
    m3 = m3.toFixed(2);
    document.getElementById("money3").innerHTML = m3;

    var w4 = document.getElementById("w4").value;
    var p4 = 5.5;
    var m4 = w4 * p4;
    m4 = m4.toFixed(2);
    document.getElementById("money4").innerHTML = m4;

    var w5 = document.getElementById("w5").value;
    var p5 = 6.6;
    var m5 = w5 * p5;
    m5 = m5.toFixed(2);
    document.getElementById("money5").innerHTML = m5;

    var w6 = document.getElementById("w6").value;
    var p6 = 7.7;
    var m6 = w6 * p6;
    m6 = m6.toFixed(2);
    document.getElementById("money6").innerHTML = m6;

    var money = Number(m1) + Number(m2) + Number(m3) + Number(m4) + Number(m5) + Number(m6);
    money = money.toFixed(2);
    document.getElementById("addMoney").innerHTML = money;
    console.log(money)
}

function submitForm() {
        var w1 = document.getElementById("w1").value;
    var p1 = 2.2;
    var m1 = w1 * p1;
    m1 = m1.toFixed(2);
    document.getElementById("money1").innerHTML = m1;

    var w2 = document.getElementById("w2").value;
    var p2 = 3.3;
    var m2 = w2 * p2;
    m2 = m2.toFixed(2);
    document.getElementById("money2").innerHTML = m2;

    var w3 = document.getElementById("w3").value;
    var p3 = 4.4;
    var m3 = w3 * p3;
    m3 = m3.toFixed(2);
    document.getElementById("money3").innerHTML = m3;

    var w4 = document.getElementById("w4").value;
    var p4 = 5.5;
    var m4 = w4 * p4;
    m4 = m4.toFixed(2);
    document.getElementById("money4").innerHTML = m4;

    var w5 = document.getElementById("w5").value;
    var p5 = 6.6;
    var m5 = w5 * p5;
    m5 = m5.toFixed(2);
    document.getElementById("money5").innerHTML = m5;

    var w6 = document.getElementById("w6").value;
    var p6 = 7.7;
    var m6 = w6 * p6;
    m6 = m6.toFixed(2);
    document.getElementById("money6").innerHTML = m6;

    var money = Number(m1) + Number(m2) + Number(m3) + Number(m4) + Number(m5) + Number(m6);
    money = money.toFixed(2);
    document.getElementById("addMoney").innerHTML = money;
    console.log(money)
}